package com.nyc;

import com.nyc.boot.Demo01Config;
import com.nyc.boot.DeptService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 26917
 */
public class StartConditionApp {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(Demo01Config.class);
        DeptService bean = context.getBean(DeptService.class);
        System.out.println("DeptService bean = " + bean);
    }
}